import { request } from "./http";

export const codeErrorAPI = {
  // 分组列表
  errorGroupList(query: any) {
    return request({
      method: "GET",
      url: `error/group`,
      query
    });
  },

  findListByErrorMessage(query: any) {
    return request({
      method: "GET",
      url: `error/findListByErrorMessage`,
      query
    });
  },

  // 错误详情
  errorGroupDetail(query: any) {
    return request({
      method: "GET",
      url: `error/detail`
    });
  },

  // 错误列表
  errorList(query: any) {
    return request({
      method: "GET",
      url: `error/page`,
      query
    });
  },

  errorGroupSummary(query: any) {
    return request({
      method: "GET",
      url: `error/error-detail-summary`,
      query
    });
  },

  getMetrics(query: any) {
    return request({
      method: "GET",
      url: `error/getMetrics`,
      query
    });
  }
};
